package labox.innovation.loginserver.socket.serverpackets;

/**
 * 授权登录协议
 * 
 * 通知客户端获得了递交用户名和密码的授权
 */
public final class GGAuth extends LoginServerPacket {

	private int _response;

	public GGAuth(int response) {
		_response = response;
	}

	/**
	 * @see com.l2jserver.mmocore.network.SendablePacket#write()
	 */
	@Override
	public void write() {
		writeByte(PTL_GGAUTH);
		writeByte(_response);
		switch(_response){
		case 2:
		case 3:
			writeString("");
			break;
		}
	}
}
